<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- <audio controls src=""></audio> -->

    <video controls src="" id="mp4" width="400px"></video>

    <script>
      const xhr = new XMLHttpRequest();
      xhr.open("GET", "http://127.0.0.1:3000/mp4");
      xhr.responseType = "blob";
      xhr.onload = function () {
        console.log(xhr.response);
        console.log(URL.createObjectURL(xhr.response));
        document.getElementById("mp4").src = URL.createObjectURL(xhr.response);
      };
      xhr.send();
    </script>
  </body>
</html>
